unit ChangePathUnit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons,
  FileCtrl;

type
  TfrmChangePath = class(TForm)
    btnOK: TBitBtn;
    edtGroupPath: TEdit;
    SpeedButton2: TSpeedButton;
    procedure btnOKClick(Sender: TObject);
    procedure SpeedButton2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmChangePath: TfrmChangePath;

implementation

{$R *.dfm}

procedure TfrmChangePath.btnOKClick(Sender: TObject);
begin
  ModalResult := mrOk;
end;

procedure TfrmChangePath.SpeedButton2Click(Sender: TObject);
var
  Dir: string;
begin
  Dir := edtGroupPath.Text;
  if not SelectDirectory('Select directory', '', Dir) then
    Exit;

  edtGroupPath.Text := Dir;
end;

end.
